package com.xiexiaozhou.helper.web.from;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class OrderForSellForm {

    @NotEmpty(message = "收货人姓名不能为空")
    private String consignee;

    @NotEmpty(message = "收货人电话不能为空")
    private String consigneeMobile;

    @NotEmpty(message = "收货地址不能为空")
    private String customerAddress;

    @NotEmpty(message = "购买的物品不能为空")
    private String goods;

    private String store;

    private String detail;

    private Integer serviceType = 1;

    public OrderForSellForm() {
    }

    public OrderForSellForm(String consignee, String consigneeMobile, String customerAddress, String goods, String store, String detail) {
        this.consignee = consignee;
        this.consigneeMobile = consigneeMobile;
        this.customerAddress = customerAddress;
        this.goods = goods;
        this.store = store;
        this.detail = detail;
    }
}
